package com.cysyz.mylib.domain;

import javax.persistence.*;

/**
 * Created by cuiyong on 2014/12/23.
 */
@Entity
@Table(name = "cf_city", schema = "", catalog = "test")
/*修改父类中属性pk对应的表列名称*/
@AttributeOverrides( {
        @AttributeOverride(name = "id", column = @Column(name = "city_id")),
})
public class City extends BaseEntity{

    @Column(name = "city_name")
    private String cityName;
    @Column(name = "isend")
    private String isend;
    @Column(name = "mark")
    private String mark;

    @Override
    public String[] businessKeys() {
        return new String[]{"cityName", "mark"};
    }

    public String getCityName() {
        return cityName;
    }

    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

    public String getIsend() {
        return isend;
    }

    public void setIsend(String isend) {
        this.isend = isend;
    }

    public String getMark() {
        return mark;
    }

    public void setMark(String mark) {
        this.mark = mark;
    }
}
